package com.ly.user_system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.user_system.code.BaseEntity;
import com.ly.user_system.detail.BaseSysLogDetail;
import com.ly.user_system.dto.BaseSysLogDTO;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;

@TableName("BaseSysLog")
@Data
@AutoMappers({
        @AutoMapper(target = BaseSysLogDTO.class),
        @AutoMapper(target = BaseSysLogDetail.class)
})
public class BaseSysLog extends BaseEntity {

    @TableField("user_id")
    private Long userId;
    @TableField("action")
    private String action;
    @TableField("ip")
    private String ip;
    @TableField("params")
    private String params;

}